<?php
namespace app\lnadmin\validate;
use think\Validate;

class StoreEdit extends Validate
{
    protected $rule = [
        'name'     => 'require',
        'taocan'   => 'require',
        'mobile'   => 'mobile',
        'exp_time' => 'require|token',
    ];

    protected $message = [
        'name.require'     => '名称不能为空',
        'taocan.require'   => '套餐不能为空',
        'mobile.mobile'    => '手机号码格式错误',
        'mobile.unique'    => '该手机号码已存在',
        'exp_time.require' => '过期时间不能为空',
        'exp_time.token'   => '网页已过期',
    ];
}
